//
//  AppDelegate.h
//  BaiYing_Thinker
//
//  Created by 鹏 朱 on 15/10/13.
//  Copyright (c) 2015年 XKJH. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MQTTSession.h"
#import <Reachability.h>

@class CLLocation;
@class MainChatController;

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (nonatomic, strong) MQTTSession *session;

@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) CLLocation *positionLocation;         //纬度
@property (strong, nonatomic) NSString *geographicalPosition;  //所在地理位置
@property (strong, nonatomic) NSString *currentUser;
@property (strong, nonatomic) NSString *deviceToken;
@property(nonatomic, strong) NSString *topic;
@property(nonatomic, strong) NSString *messageId;
@property (nonatomic) BOOL hasConnectToIMserver;          //是否连接到IM服务器

@property(nonatomic, strong) MainChatController *rootVC;
@property (nonatomic, strong) Reachability *reach;
@property (nonatomic) BOOL networkable;    //是否可以联网
@property (nonatomic) BOOL openSound;       //是否开启声音提示

@property(nonatomic, strong) NSMutableArray *subjectList;
@property(nonatomic, strong) NSMutableArray *sessionList;
@property(nonatomic, strong) NSMutableArray *sessionContentList;

- (void)sendMessage:(NSDictionary *)msg;

@end